package com.kaishengit.pojo;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name="t_taskitem")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class TaskItem {
	
	private int id;
	private String itemname;
	private String color;
	
	private Set<Task> taskSet;
	
	
	
	public String getItemname() {
		return itemname;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setItemname(String itemname) {
		this.itemname = itemname;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	@OneToMany(mappedBy="taskitem")
	public Set<Task> getTaskSet() {
		return taskSet;
	}
	public void setTaskSet(Set<Task> taskSet) {
		this.taskSet = taskSet;
	}
	
	
}
